<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动态js练习</title>
    <script>
        var i =25;

        while (i > 0) {
            document.write("<hr align=center width="+i+"%>")
            i=i-5;
        }
        for (var j = 5; j < 30; j = j + 5) {
            document.write("<hr align=center width="+j+"%>")
        }
    </script>
</head>
<body>

</body>
</html>